import java.sql.* ;

class CreateConnection
{

  Connection cn = null  ;

 	CreateConnection()
	{

				try
				{

					String connectionUrl = "jdbc:mysql://localhost:3306/jwel?"+"user=root&password=123" ;

					Class.forName("com.mysql.jdbc.Driver");
					cn = DriverManager.getConnection(connectionUrl,"root","123");


				}

				catch(Exception e)
				{}

	}

	Connection getConnection()
	{


		try
				{

					String connectionUrl = "jdbc:mysql://localhost:3306/jwel?"+"user=root&password=123" ;

					Class.forName("com.mysql.jdbc.Driver");
					cn = DriverManager.getConnection(connectionUrl,"root","123");


				}

				catch(Exception e)
				{}

			return cn ;

	}


	PreparedStatement getStatement(String sql) throws Exception
	{

		PreparedStatement ps = cn.prepareStatement(sql) ;

		return ps ;

	}



}